import styled from "styled-components"

// 在进行 头部flex布局时 中间自动宽度 左右各占据一份
const HeaderWrapper = styled.div`
  .content {
    position: relative;
    z-index: 999;
    border-bottom: ${(props) => (props.theme.isAlpha ? "0px" : "1px")} solid
      #eee;
    background-color: ${(props) =>
      props.theme.isAlpha ? "rgba(255,255,255,0)" : "#fff"};
    .top {
      display: flex;
      /* 垂直方向居中 */
      align-items: center;
      height: 80px;
      box-sizing: border-box;
      font-size: ${(props) => props.theme.text.textSize};
    }
    .bottom {
      z-index: 999;
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
  .cover {
    z-index: 999;
    position: fixed;
    top: 180px;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
  }
  &.fixed {
    position: ${(props) => props.fixed};
    z-index: 99;
    top: 0;
    left: 0;
    right: 0;
  }
`

export default HeaderWrapper
